package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the ADRESS database table.
 * 
 */
@Entity
public class Adress implements Serializable {
	private static final long serialVersionUID = 1L;
	private long adressid;
	private String buildingname;
	private String buildingnumber;
	private int cityid;
	private int countryid;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String isactive;
	private String streetname;
	private int townid;
	private List<Adresslookup> adresslookups;

    public Adress() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public long getAdressid() {
		return this.adressid;
	}

	public void setAdressid(long adressid) {
		this.adressid = adressid;
	}


	public String getBuildingname() {
		return this.buildingname;
	}

	public void setBuildingname(String buildingname) {
		this.buildingname = buildingname;
	}


	public String getBuildingnumber() {
		return this.buildingnumber;
	}

	public void setBuildingnumber(String buildingnumber) {
		this.buildingnumber = buildingnumber;
	}


	public int getCityid() {
		return this.cityid;
	}

	public void setCityid(int cityid) {
		this.cityid = cityid;
	}


	public int getCountryid() {
		return this.countryid;
	}

	public void setCountryid(int countryid) {
		this.countryid = countryid;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	public String getStreetname() {
		return this.streetname;
	}

	public void setStreetname(String streetname) {
		this.streetname = streetname;
	}


	public int getTownid() {
		return this.townid;
	}

	public void setTownid(int townid) {
		this.townid = townid;
	}


	//bi-directional many-to-one association to Adresslookup
	@OneToMany(mappedBy="adress")
	public List<Adresslookup> getAdresslookups() {
		return this.adresslookups;
	}

	public void setAdresslookups(List<Adresslookup> adresslookups) {
		this.adresslookups = adresslookups;
	}
	
}